package com.bnz.canal.controller;

import com.bnz.canal.entity.BrandEntity;
import com.bnz.canal.service.BrandService;
import com.bnz.common.utils.PageUtils;

import com.bnz.pojo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("brand")
public class BrandController {
    @Autowired
    private BrandService brandService;

    @RequestMapping("/findAll")
    public R findAll(){
        List<BrandEntity> brandEntities = brandService.findAll();
        return R.ok().put("list",brandEntities);
    }


}
